/**
 * 
 */
package hb_Teach_InitObject_InterFaceTest;

/**
 * @author Jiang Zhiyan
 *
 * 2021年4月30日 下午4:51:20
 */
public class BYD implements Product,Car{
   private double price;
   private int speed;

/**
 * @return the speed
 */
public int getSpeed() {
	return speed;
}

/**
 * @param speed the speed to set
 */
public void setSpeed(int speed) {
	this.speed = speed;
}

/**
 * @return the price
 */
public double getPrice() {
	return price;
}

@Override
public void move() {
	if(speed<Car.MAX) {
		System.out.println("给油就走");
	}
}

@Override
public void stop() {
System.out.println("停车");
}

@Override
public void setPrice(double price) {
	this.price =price;
}

@Override
public double getprice() {
	// TODO Auto-generated method stub
	return this.price;
}
   
}
